package com.wtzz.police.base.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 单位
 */

@Data
@NoArgsConstructor
public class DepartmentDto  implements Serializable {
    @ApiModelProperty(value = "部门编码", required = true)
    @NotBlank(message = "部门编码不能为空")
    private String code;

    @ApiModelProperty(value = "部门名称", required = true)
    @NotBlank(message = "部门名称不能为空")
    private String name;

    @ApiModelProperty("部门全称")
    private String fullname;

    @ApiModelProperty("状态")
    private Boolean enable = true;
}
